using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class SkillUi : MonoBehaviour
{
    public static SkillUi instance;
    public Image image;

    private void Awake()
    {
        instance = this;
    }

    //cd计时
    public void ChangeCd(float cd)
    {
        image.fillAmount -= 1.0f / cd * Time.deltaTime;
    }
    
    //进入cd计时
    public void RecoverCd()
    {
        image.fillAmount = 1.0f;
    }
}
